package br.upe.pso;
import java.util.ArrayList;


public class Swarm {
	private ArrayList<Particle> swarm;
	
	public Swarm() {
		ArrayList<Particle> swarm = new ArrayList<Particle>();
		
		for (int i=0; i<Constants.SWARM_SIZE; i++) {
			Particle particle = new Particle();
			swarm.add(particle);
		}
		
		this.swarm = swarm;
	}

	public ArrayList<Particle> getSwarm() {
		return swarm;
	}
	
	public void setSwarm(ArrayList<Particle> swarm) {
		this.swarm = swarm;
	}
}
